package com.lanou.zakerproject.city;

import android.util.Log;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by dllo on 16/1/20.
 */
public class AllCityData implements Serializable{
    private int returncode;
    private String message;
    private Result result;


    public int getReturncode() {
        return returncode;
    }

    public void setReturncode(int returncode) {
        this.returncode = returncode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }


    public class Result implements Serializable {
        private Long timestamp;
        private List<Citys> provinces;

        public Long getTimestamp() {
            return timestamp;
        }

        public void setTimestamp(Long timestamp) {
            this.timestamp = timestamp;
        }

        public List<Citys> getProvinces() {
            return provinces;
        }

        public void setProvinces(List<Citys> provinces) {
            this.provinces = provinces;
        }
    }

    public class Citys implements Serializable {
        private List<Citys> citys;
        private int id;
        private String name;
        private String firstletter;

        public List<Citys> getCitys() {
            return citys;
        }

        public void setCitys(List<Citys> citys) {
            this.citys = citys;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getFirstletter() {
            return firstletter;
        }

        public void setFirstletter(String firstletter) {
            this.firstletter = firstletter;
        }
    }

//
//    //点击字母，滚动到你要的位置
//    public int getIndexFromString(String s) {
//        for (int i = 0; i < firstLetter.size(); i++) {
//            if (firstLetter.get(i).equals(s)) {
//                //找到了该字母立即返回索引
//                Log.d("ContactsFreeAdapter", i + "----");
//                return i;
//            }
//        }
//        //没有找到返回-1
//        return -1;
//    }


}
